package cn.qh.seasonal.entity;

import java.util.Date;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * (Factoryseasonality)表实体类
 *
 * @author makejava
 * @since 2021-11-02 08:59:16
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "Factoryseasonality")
@SuppressWarnings("serial")
public class Factoryseasonality extends Model<Factoryseasonality> {
    @TableId(type = IdType.AUTO)
    private int id; //主键


    @TableField(value = "seasonalId")
    private int seasonalId;  //时令名字


    @TableField(value = "startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;  //开始时间


    @TableField(value = "endTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;  //结束时间


    @TableField(value = "factoryId")
    private Integer factoryId;  //工厂模型


    @TableField(value = "status")
    private String status;  //0未启用1已启用


    @TableField(value = "createdTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;  //新增时间


    @TableField(value = "updatedTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;  //修改时间


    @Version
    private int version;   //版本


    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志


    @TableField(exist = false)
    private String seasonalname;  //时令名字     }

    @TableField(exist = false)
    private String gcName;  //工厂名称     }

    @TableField(value = "aliaseName")
    private String aliaseName;
}
